#!/bin/bash
# author: mmatczuk

function printinfo {
  echo ;echo --- USE: $(basename "${0}") [online]
}

offline="-o"
case ${1} in
  "online") offline="";;
  "");;
  *) printinfo; exit -1
esac

cd $(dirname "${0}")
cd "$(pwd)/CODE" && mvn org.apache.maven.plugins:maven-javadoc-plugin:2.5:aggregate ${offline} || printinfo

